package com.aaa.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName branch
 */
public class Branch implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 店铺编号
     */
    private Integer branchid;

    /**
     * 分店名
     */
    private String branchname;

    /**
     * 开店时间
     */
    private Date starttime;

    /**
     * 分店地址
     */
    private String address;

    /**
     * 店铺状态
     */
    private Integer state;

    /**
     * 员工Id
     */
    private Integer staffid;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 店铺编号
     */
    public Integer getBranchid() {
        return branchid;
    }

    /**
     * 店铺编号
     */
    public void setBranchid(Integer branchid) {
        this.branchid = branchid;
    }

    /**
     * 分店名
     */
    public String getBranchname() {
        return branchname;
    }

    /**
     * 分店名
     */
    public void setBranchname(String branchname) {
        this.branchname = branchname;
    }

    /**
     * 开店时间
     */
    public Date getStarttime() {
        return starttime;
    }

    /**
     * 开店时间
     */
    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }

    /**
     * 分店地址
     */
    public String getAddress() {
        return address;
    }

    /**
     * 分店地址
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * 店铺状态
     */
    public Integer getState() {
        return state;
    }

    /**
     * 店铺状态
     */
    public void setState(Integer state) {
        this.state = state;
    }

    /**
     * 员工Id
     */
    public Integer getStaffid() {
        return staffid;
    }

    /**
     * 员工Id
     */
    public void setStaffid(Integer staffid) {
        this.staffid = staffid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Branch other = (Branch) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getBranchid() == null ? other.getBranchid() == null : this.getBranchid().equals(other.getBranchid()))
            && (this.getBranchname() == null ? other.getBranchname() == null : this.getBranchname().equals(other.getBranchname()))
            && (this.getStarttime() == null ? other.getStarttime() == null : this.getStarttime().equals(other.getStarttime()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
            && (this.getStaffid() == null ? other.getStaffid() == null : this.getStaffid().equals(other.getStaffid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getBranchid() == null) ? 0 : getBranchid().hashCode());
        result = prime * result + ((getBranchname() == null) ? 0 : getBranchname().hashCode());
        result = prime * result + ((getStarttime() == null) ? 0 : getStarttime().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        result = prime * result + ((getStaffid() == null) ? 0 : getStaffid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", branchid=").append(branchid);
        sb.append(", branchname=").append(branchname);
        sb.append(", starttime=").append(starttime);
        sb.append(", address=").append(address);
        sb.append(", state=").append(state);
        sb.append(", staffid=").append(staffid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}